package model.effects;

import java.io.Serializable;
import java.util.ArrayList;
import model.game.Item;
import model.game.items.LifePotion;
//Efeito Somente Aplicável a Itens
public class Consumable extends EffectDecorator implements Serializable{
        private ArrayList<Item> items;
        private LifePotion lp;
        public Consumable(Item decoratedItem, ArrayList<Item>items, LifePotion lp) {
        super(decoratedItem);
        this.items = items;
        this.lp = lp;
    }
    public void use(){    
        super.use();
        items.remove(lp);
    }
}
